<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form action="三国之皇帝-家庭作业.html">
			手机号码：<input name="phone" value="13926583118" />
			<br/>
			
			爱好：
				<input type="checkbox" name="hobby" /> 麻将
				<input type="checkbox" name="hobby" /> 斗地主
				<input type="checkbox" name="hobby" /> 诈金花
				
			年龄：<input name="phage"  value="33"  />
			<br/>
		</form>
	</body>
	
	<script type="text/javascript" src="../../js/jquery-1.7.2.js" ></script>
	<script>
		
		//拿到input标签s   input的name属性= phone
		var phone = $('input[name="phone"]');
		//console.log(phone.val());
		
		var hobby =$('input[name="hobby"]');
		console.log(hobby.length);
		
		//要求打印手机号码的值和年龄的值 找以ph开头的便签s
		
		
		//找input 
		//	1必须有name属性   
		//  2name属性的值必须以ph开头    phone  phage  ^
		var xyz = $('input[name^="ph"]');
		console.log(xyz.length);
		
		
		
		
	</script>
</html>
